package com.wn.service;

import com.wn.entity.User;
import com.wn.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Author 史豪通
 * Date 2024/08/26 17:12
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User selectByName(User user) {
        return userMapper.selectByName(user);
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }
}
